<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::group(['namespace'=>'Web'],function (){
    Route::get('/google{str}.html', "ApiController@googleVerify");
    Route::get('/robots.txt', "ApiController@robots");
    Route::get('/sitemap.xml', "ApiController@sitemap");
    Route::post('take/inquiries', "ApiController@inquiries");
    Route::get('/css/font', "IndexController@font");
    Route::get('/font-test', "IndexController@fontTest");

});


Route::group(['namespace'=>'Web','middleware'=>['redirect.device','googlebot.checked']],function (){
    Route::get('/', "IndexController@index");

    Route::get('/news', "NewsController@index");

    Route::get('/news/{id}', "NewsController@show");

    Route::get('/product', "ProductController@index");


    Route::get('/product/{id}', "ProductController@show");

    Route::get('/team-detail/{id}', "TeamController@product");

    Route::get('/team-about/{id}', "TeamController@about");

    Route::get('/recruit', "RecruitController@index");
    Route::post('/recruit', "RecruitController@store");


    Route::get('/process',"PageController@process");

    Route::get('/contact',"PageController@contact");


    Route::get('/about',"PageController@about");
    Route::get('{uri}',"PageController@index");



});

